package com.zyj.eps.service;

import com.zyj.eps.pojo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author super
 * @date 2022/4/3 17:39
 */
public interface ManagerService {
    Manager ManagerLogin(String mname,String password);
    Manager getManagerById(int mid);
    int updateManagerInfo(Manager manager);
    int updateUserHealth(User user);
    List<User> searchUserById(int id);
    List<User> searchUserByName(String info);
    List<User> searchUserByHealth(String info);

    int updateGoodsNum(int goodsid, int num);
    List<Record> getAllRecord();
    List<Record> searchRecordByUser(String uname);

    List<Vaccine> ManagerAllVaccine();
    int deleteVaccine(int vid);
    int addVaccine(Vaccine vaccine);

    int insertNews(News news);
    int deleteNews(int newsid);

    List<Manager> getAllManager();
    int addManager(Manager manager);
    int deleteManagerById(int mid);

    int insertInform(Inform inform);

    int deleteKnowledgeById(int id);
    int addKnowLedge(Knowledge knowledge);
}
